package com.example.videodemo;


import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
/**
 * **********************************************************
 *  @内容摘要	：网络视频链接:优酷:1.http://112.5.187.10/youku/6972FD78DDD4072D6EBF52D31/030020010051A89D4EDBA303BAF2B1C55F141C-4B3C-B873-5F6F-3BD196A6F725.mp4
 *				  				   2.追:http://218.207.102.104:82/1Q2W3E4R5T6Y7U8I9O0P1Z2X3C4V5B/112.25.32.132/youku/67723DA27213E775F066B68B2/030020010050C0B220C8E2064F9E6C20F77C42-F152-4FA6-4EDD-65DAA4C02676.mp4  
 *                测试优酷网址，可搜寻资源，获取播放链接:http://m.youku.com/smartphone/
 *  @作者	：黄秋
 *  @创建时间	：2013-6-3 下午1:13:52 
 *  @历史记录	:
 *  @日期	: 2013-6-3 下午1:13:52 	修改人：黄秋
 *  @描述	:
 ***********************************************************
 */
public class MainActivity extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		findViewById(R.id.btn_local_play).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MainActivity.this, VideoPlayerActivity.class);
//				intent.putExtra("path","/mnt/sdcard/DCIM/100ANDRO/MOV_0141.mp4");
				intent.putExtra("path","/mnt/sdcard/CountryRoads.mp4");
				intent.putExtra("title","CountryRoads");
				startActivity(intent);
				
				System.out.println("========");
			}
		});
	findViewById(R.id.btn_net_play).setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Intent intent = new Intent(MainActivity.this, VideoPlayerActivity.class);
//				intent.putExtra("path","/mnt/sdcard/DCIM/100ANDRO/MOV_0141.mp4");
				intent.putExtra("path","http://union.bokecc.com/playvideo.bo?uid=84786D1775594BBA&playerid=null&playertype=null&autoStart=true&vid=3236C07A03F541149C33DC5901307461");
				intent.putExtra("title","MOV_0141");
				startActivity(intent);
			}
		});
	}

}
